package middol.logs

import grails.compiler.GrailsCompileStatic
/**
* @Description:    操作日志
* @Author:         zhangjiayu@middol.com
* @CreateDate:     2020/7/21 22:49
* @Version:        1.0
*/
@GrailsCompileStatic
class AuditLog implements Serializable{
    String className                //类名
    String persistedObjectId        //操作数据id
    String eventName                //操作
    String uri                      // uri
    String jsonValue                 //旧数据
    String operator                 //操作人
    Date dateCreated                //操作日期

    static mapping = {
        comment "操作日志"
        jsonValue type: "text", comment: "数据"
        className comment: "类名"
        persistedObjectId comment: "操作数据id"
        eventName comment: "操作类型【insert, update, delete】"
        uri comment: "请求路径"
        version false
    }
}
